package com.ms.test10;

/**
 * 单例模式的第一种方式；
 * @author carter
 * create time    2018-08-20
 */
public class TestSingleton {

    private static TestSingleton testSingleton = new TestSingleton();

    private TestSingleton()
    {

    }

    public static TestSingleton getInstance()
    {
        return testSingleton;
    }

}
